# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=libsigc++3
pkgver=3.2.0
pkgrel=2
pkgdesc="Typesafe callback system for standard C++"
url="https://github.com/libsigcplusplus/libsigcplusplus"
arch="all"
license="LGPL-3.0-or-later"
makedepends="boost-dev meson"
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/libsigc++/${pkgver%.*}/libsigc++-$pkgver.tar.xz"
builddir="$srcdir/libsigc++-$pkgver"

build() {
	abuild-meson build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

check() {
	meson test --no-rebuild -v -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
91315cecc79a1ad6ea165b66a13a5afd4e5bc101842f9d4c58811ea78536c07fc8821c51aa5110a032ed71c09f85790b3a02f2ad7fe8cc3aed6e03b2bafcd70c  libsigc++-3.2.0.tar.xz
"
